I recall learning this too. I never heard that prices shouldn't go up. Maybe the above person meant that the total valuation shouldn't go up? If so, that logic does check out.
I think we’re talking about Miller-Modigliani [1] which says that enterprise value should not change as capital structure changes. However it presumes many untrue aspects of the world in order to make this claim.