According to this linK:
www.bookbrowse.com
Meaning:
This expression is usually used ironically to comment on somebody who is copying another person with the intention of gaining attention.
Background:
The first recorded use of this expression is in Charles Caleb Colton's 1820 Lacon. Colton was an English clergyman (1780-1832).