UnboundMethod#source_location in Ruby 1.8.7

Any way to emulate UnboundMethod#source_location in Ruby 1.8.7? I am
working on a tool that uses this feature and I am wondering how I can
make it work for older version of Ruby as well.

Thanks.