Every episode of Legacies gets its title from a line said in that episode. In this case "We're being punked, Pedro" is said by Lizzie (Jenny Boyd).
The mentioning of the plague "greyscale" is another reference to Game of Thrones (2011), just like in the previous episode.