If you discard a card with madness to pay the cost of Anje’s activated ability, you’ll draw a card last. You may untap Anje before or after you choose whether to cast the discarded card, but not after you’ve chosen to cast it but before that spell resolves.