Collect all the pieces of the Beanstar first, then go back and speak to the same characters you dealt with earlier. Once the Beanstar is whole, they will craft the Ultra Hammer for you.
Trying to get it beforehand does nothing, so if the conversation is not offering the hammer, you are missing a Beanstar fragment.