For the rod to be in equilibrium centre of mass of (rod + mass m) system should be below centre of gravity of the volume displaced by the rod.
For minimum m should coincide so.
Suppose h length of rod is below water then, by force balance
Reaction of centre of mass should be at h/2 distance from bottom