Can I force z position to match prefab when it's dragged onto scene?

When dragging a prefab onto the scene in my 2D game, I’d like to force the z position to whatever the prefab’s was, but still allow x and y to be set.

Currently, a strange z value is set, and often the object disappears behind the camera in the scene, though it is visible in the editor! I teach game-making to teenagers. They are consistently confused by their objects disappearing. I hate telling them they can’t just drag their prefabs onto the scene.

Not sure if you can actually force the Z value to always be the prefab’s Z value.

Although what you can do is drag a prefab into the scene, have it selected, right click on the Transform’s Position on the right hand side in the editor and the context menu that appears should show “Revert Value to Prefab” which’ll reset the position to that of the prefab.