Dynamic proxy to record and playback method calls.