Testosterone increases dopamine in a lockstep fashion - increase testosterone any way you want and you'll increase dopamine level too. Dopamine, on its own, increases the desire for exploration.
Testosterone is also linked to improved logical thinking, you wouldn't believe.
I also mentioned walking. Walking increases serum level of brain-derived neurotrophic factor, BDNF. Serum level of BDNF i positively associated with the volume and density of hippocampus, which is responsible for the ability and quality of learning.
Basically, you need to walk (jog, run, bike, swim, row - whatever suits you) as much as you can to be able to learn as good as you can and you also need to lift heavy to increase testosterone. You need to lift heavy to balance catabolic processes induced by endurance exercise and to make yourself seek something new.
As a nice side effect, you will look and feel great. ;)
Maybe he meant something else