def my_yield(*params) yield(*params) end def foo() my_yield(5) end foo {|i| puts i}