I usually ask "what do you expect to be paid" to understand if I'll make them happy or sad when discussing what I'll actually offer.
This is not foolproof and has caused some issues with people coming in as very good negotiators and thinking my inability to budge is because I'm being hard-line, when in reality it's because- as mentioned, I always offered the max for a role.
The second issue is that not all people are equivalently valuable, but I think solving that in the salary is terrible, because salary should cover your compensation for responsibility. If you have to reward someone valuable then it should probably be via bonus' imo.