You can do this if you put your printing code inside an initialization block. This will get executed once for every instance, before the constructor runs. For example:class A {
int a = 1;
{...