How to debug print method and args in Ruby?

suppose I have:

def foo(bar, baz)
  puts "Called foo, bar = #{bar}, baz = #{baz}"
  blah_blah
end

What could I do for a editor macro like this:

def foo(bar, baz)
  puts "<the answer to this question>"
  blah_blah
end

And get the same debug result?