add helper method to dump SsaMethod.