My son liked to do that when he was that age too. Though he never got as far as to puke. Usually it was when we were out in public running an errand and he wanted more attention. It was a phase but i hated seeing it. If you have the time then stop what you are doing and try to see what type of attention he is trying to get.