A spokesman for the Malaysian parliament for trade and industry affairs, Dr Tan Yee Kew said that Malaysia ranked second after Singapore in ASEAN in terms of foreign investment.