The phrase is a combination of several elements:
* "Hear ye, hear ye": This is a traditional heraldic call used to gain attention and announce something important. It has been used for centuries to announce royal proclamations and other events.
* "Here comes the Queen": This simply announces the arrival of the Queen.
While the exact phrase might not have a specific historical origin, it's a derivative of traditional heraldic calls and announcements used throughout history.