Your macro can expand to line!() or file!() calls as needed, which will reflect the call site.
What a great question! Because it's implemented as a const/codegen feature I'm not sure what it would mean to support it for proc macros. Probably gnarly design/RFC work?