A few issues here. Beginning with the tank size. Male rams [I'll come to the species momentarily] are (like all cichlids) territorial, and sometimes individual males can get very feisty. Two males of either ram species in a 29g would usually mean one dead ram before many weeks. A pair of either species could manage in this tank quite well, but this brings us to the next issue.
These fish must select their mates. They will then bond, and this may last their lifetime or may not, but if they do not bond the female (usually) will be dead before very long. There are ways to ascertain a likely bonding pair by observing the group of fish in the store tank. You could buy 8 or so yourself and then let a pair form (usually works), but then you have the others to dispose of. Better to do the selection in the store group.
Now to the water parameters. The Bolivian Ram is Mikrogeophagus altispinosus and it prefers water than is more compatible with many species. Temperature in the 24-28C/75-82F range, GH on the soft side, and pH slightly acidic but 6.0 to 7.5 roughly is OK. So it works with many peaceful fish. It does very well as a solitary fish, or in a bonded pair. A small group should have more space.
The common or blue ram, Mikrogeophagus ramirezi, has several varieties developed by selective breeding, but all are the same species. It needs warmth, with 80F/27C absolute minimum, but preferably a few degrees higher. Same behaviour/bonding issues. But given the warmth needed, this species is more difficult to find tankmates for. You might try a small group, but a 29g is still small space (surface area of the substrate is the size issue) and trouble is not always avoidable.