Is your teacher specifically picking on you??? If so you can deal with it other ways instead of petty tit-for-tat behavior like this. It's a bad habit to acquire. Don't be one of those people that does stupid obnoxious things in public just to pyss the world off.
A can of drink doesn't matter much, but your motives for doing it are daft. If it doesn't get a reaction, what will you do next? Take a shyt in her desk drawer?