Bachelet , who was elected president earlier this month , will take office in March , succeeding socialist president Ricardo Lagos .