The most effective and quickest way of making a magnet from soft iron is by:
Placing it inside a coil carrying current
A solenoid is a type of electromagnet when the purpose is to generate a controlled magnetic field. It’s the most efficient way to produce magnetic field according to the requirement.