Hello all,

I was wondering if it is possible to do something like this:

class AClass

  def all_knowing
    puts "#{current_method_name} is called by #{caller_method_name}"
    caller_method_name
  end

  def confused
     puts "I'm method #{all_knowing}"
  end
end

a = AClass.new.confused

which outputs:
--------------------------------------------------
all_knowing is called by confused
I'm method confused
--------------------------------------------------

So, the question is: how do I put the appropriate values to
current_method_name and caller_method_name?

Thanks,
YS.