Skelelton code for pre_append in 2.8

Does anyone have a snippet to print the current frame number (to console) before the frame change in 2.8?