Printing memory using macros or methods

I have take a memory in a transaction object. Is there any inbuilt methods or utility macros to print the memory contents in the log file?

Thanks in advance.