Imagine a patch of still water shaped exactly like a rock, a 'water rock'. It neither rises nor sinks, so the surrounding water must push up on it with a force equal to its own weight. Now put the real rock in its place, same shape, same position. The surrounding water cannot tell the difference and presses on that surface exactly as before. So the upward force on the rock is the weight of the water it replaced. That argument works for any shape and any fluid, and it is Archimedes' principle.
It gives the force in one line. A stone of 400 cm³ fully under water displaces 400 cm³ of water, which has a mass of 0.400 kg, so Fb=0.400×9.8=3.92 N. The stone's own mass never enters. A 400 cm³ lump of lead and a 400 cm³ block of plastic, both held fully under, feel the same 3.92 N upward. For a floating object only the part below the surface counts.
The buoyant force is not the object's weight. The two are equal only for an object floating at rest, because that balance is what floating means. A ship weighing 5.0×107 N floats by displacing water that weighs 5.0×107 N. A sinking anchor feels a buoyant force smaller than its weight, and a cork held under feels one larger than its weight. So before writing Fb=W, check that the object is free and floating; if it is held, sinking or pinned under, find Fb from the displaced volume instead.
Think of it like this. A submerged object is a stand-in for the fluid that used to be there. The surrounding fluid pushes on whatever fills the space just as it pushed on the original fluid, so the lift equals that fluid's weight, and filling the space with lead or plastic changes nothing. The argument assumes the fluid is still; moving water adds drag.
Core idea. Whatever an object is made of, the fluid pushes up on it with a force equal to the weight of the fluid it displaces, and only the submerged part of its volume counts.