What do you want to get from this meeting?
Honestly, I think you were out of line. The joke was probably fine, but your teacher (who is most likely volunteering to fill in for YOU to do that ensemble) sounded like he was (at least attempting to) giving you sincere advice.
The gossipping to other people and telling the principal seems a little much too me.
But you have the right to be upset, and I sincerely hope it works out on the end.