'investing' is just an unusual variant of 'paying' in the expression 'paying attention'. It's possible that the author just wanted to show how creative and clever he was by choosing a different verb. CJ
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.