Arm it when you are within 90 degrees of the inbound heading, normally on the base turn. As for the glide slope, you'll normally capture the glide slope from below anyway so if it's an independent button from the localiser you can arm that anytime (as long as you're not flying on the outbound leg away from the ILS or you will end up in space!). Engage both together if they are independent on your base turn.