The short version: put it on a disc, get it in front of people, and let interest build until a company wants to buy it.
In practice that is only the beginning. Most small developers also need a build that runs cleanly, some form of documentation, and a pitch explaining who the game is for. Publishers are far more likely to bite when the game is finished and demonstrably fun than when it is an idea.
Digital storefronts have made self-publishing a genuine alternative, which is worth considering before signing anything away.