Wow, that is a much more clever and much more elegant solution by using
the "caller" method.

May I push it a little bit further?  What is the best way to put the log
in all the (or some selective) methods so that we don't have to write the
"log" calls in all those methods manually?  Will aspect oriented
programming (aspectR) play a role in this?

Regards,

Bill
==========================================================================
Rich Kilmer <rich / infoether.com> wrote:
> def meth
>   log "Message"
> end
>  
> def log(message)
>   puts caller[0]+" "+message
> end