Armchair theorist as well, but all consciousness aside, it could also be that there's just a simple chemical that makes ants want to climb up (just like some hormones make the human brain want things), so that there's no computation involved, the mushroom might just happen to excrete the right chemical in the right place