Ankle replacement surgery is the procedure to replace the damaged joint to eliminate the pain as well as swelling. Typically, a procedure takes place under general anesthesia. The surgeon will make the incision in your ankle to access an affected joint.