you announce, then pay for costs, then the ability is put on the stack
Actually, you announce, put the ability on the stack, then pay costs.
The first thing that happens when you announe a spell or ability is that it goes on the stack.
Then you make all descisions for it relevant to playing it, then pay the costs.
To answer the original question, yes you can do that.