S.M.
My son went through this when he was 3. He's 5 now. For him, we didn't fret, didn't punish, didn't respond other than put him to bed because "you must be tired". One of two things will happen: he will get bored and realize that the attention-getting didn't work or he will go to sleep because he WAS tired. Give it time. Let him be bored for 10 minutes or so. It's tough. It took about a year of this response for Kieran to realize that the behavior wasn't acceptable.