Any wire conducting electric current has a magnetic field surrounding it. The field stays there as long as the current flows, then collapses when the current ceases in a direct current (D.C.) system. (Note that alternating current (A.C.) systems - like in your home - reverse polarity 120 times per second - 60 positive and 60 negative - so the magnetic field expands and collapses each time the polarity shift happens. You can't use A.C. to magnetize something.)
The idea behind this is the same that you use to electrify a nail or screwdriver - coil some wire around it and apply D.C. current for a period of time. The coil of wire multiplies the amount of magnetic field - more turns means more magnetic field. The magnetic field induced by the current in the coil will magnetize the nail or screwdriver.
Here's the hard part - how do you tell which end to hook to the + and which end to hook to the - of the battery? Which way the current flows determines polarity of the coil of wire. I guess you could use a compass on the coil of wire before you slip it on the magnet and on the magnet to figure this out. **CAUTION** - if you hook that wire up just to the two ends of the wire without a load, the battery will be shorted and may explode. Better have a light in the circuit to prevent this.
No idea if it will work. You *can* magnetize screwdrivers as I've noted, but it's not a real strong magnetic field. Be careful if you try it - just don't short that battery with a wire and no load on it!